﻿//  --------------------------------
//  Copyright (c) 2010 Michael Schuler, Sascha Burger. All rights reserved.
//  This source code is made available under the terms of the Microsoft Public License (Ms-PL)
//  http://p2pmessaging.codeplex.com/license
//  ---------------------------------
using NUnit.Framework;

namespace p2pMessaging.Tests
{
    [TestFixture]
    public class TestPatterns
    {
        [Test]
        public void TestSingelton()
        {
            Singleton singelton1 = Singleton.getInstance();
            singelton1.Test = "Instance 1";
            Singleton singelton2 = Singleton.getInstance();
            Assert.AreEqual(singelton1.Test, singelton2.Test);
        }
    }
}
